<?php

#[('__constuct', '构造函数: 最先自动执行的函数, 初始化使用')]
class User
{
    public $name;
    public function __construct($name)
    {
        $this->name = $name;
    }

    public function start()
    {
        echo "my name is {$this->name}";
    }
}

$obj = new User('hflxhn');
$obj->start();
